<template>
  <div>
    <el-table :data="dataList" stripe border style="width: 100%;"
              :cell-style="{'text-align':'center'}"
              :header-cell-style="{'text-align':'center'}">
      <el-table-column prop="name" label="快递公司名称"></el-table-column>
      <el-table-column prop="code" label="编码"></el-table-column>
      <el-table-column prop="remark" label="备注"></el-table-column>
<!--      <el-table-column label="操作" width="180">-->
<!--        <template slot-scope="scope">-->
<!--          <el-button type="text" size="small" @click="deleteClick(scope.row)">删除</el-button>-->
<!--        </template>-->
<!--      </el-table-column>-->
    </el-table>
  </div>
</template>

<script>
import {
  KAFEE_GET_CATE_DETAIL, KAFEE_GET_EXPRESS_LIST,
  KAFEE_POST_ADD_CATE,
  KAFEE_POST_ADD_DISH,
  KAFEE_POST_CATE_DELETE,
  KAFEE_POST_CATE_LIST, KAFEE_POST_EDIT_CATE
} from "@/assets/const/api";

export default {
  data() {
    return {
      dataList: [],
      dialogVisible: false,
      isEdit: false,
      form: {
        id: null,
        categoryName: '',
        img: ''
      },
      params:{
        current:1,
        size:10,
        total:0,
      },
      fileList: [],
      curRow:{},
    }
  },
  mounted() {
    this.getData()
  },
  methods: {
    getData(){
      this.$http.get(KAFEE_GET_EXPRESS_LIST).then(res => {
        this.dataList = res.data||[];
      });
    },
    handleCurrentChange(page){
      this.params.current = page;
      this.getData();
    },
    handleSizeChange(size){
      this.params.current = 1;
      this.params.size = size;
      this.getData();
    },
  }
}
</script>